<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>PintarOS: include/hal.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">PintarOS
   </div>
   <div id="projectbrief">Operating System for Smart Card</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">hal.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="hal_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#ifndef HAL_H</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#define HAL_H</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#define HAL_OK          0</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HAL_ERROR       1</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">/**************************/</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">/*        Variable        */</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">/**************************/</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">/* int      *Rx_callback_ptr;       ///&lt; pointer of Rx transmission handler to call by the interrupt handler */</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">/**************************/</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">/*        Function        */</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">/**************************/</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keywordtype">int</span> <a class="code" href="hal_8h.html#ad106c3e360fec68aef9cc2da8bcb4064">HAL_Init</a>();</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;uint8_t <a class="code" href="hal_8h.html#a136930f47e2cdb4cdd6bc147b9703b0f">HAL_IO_RxByte</a>();</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="keywordtype">void</span> <a class="code" href="hal_8h.html#a5e86724251ff7e04917713b3e0d3eeaf">HAL_IO_TxByte</a>(uint8_t ch);</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;uint8_t <a class="code" href="hal_8h.html#a2a2216471be84d032a09559ed0b97cac">HAL_Mem_ReadByte</a>(uint16_t address);</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="keywordtype">void</span> <a class="code" href="hal_8h.html#ab846f676e7ae737a96a974da5c8dd558">HAL_Mem_WriteByte</a>(uint16_t address, uint8_t databyte);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="keywordtype">int</span> <a class="code" href="hal_8h.html#a48d7225f3720aa598e5c9fc3354c88e8">HAL_Mem_ReadBlock</a>(uint16_t address, uint16_t size, uint8_t * databyte);</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="keywordtype">int</span> <a class="code" href="hal_8h.html#aebb1592b9bb339c20a2e28a08b3deebe">HAL_Mem_WriteBlock</a>(uint16_t address, uint16_t size, uint8_t * databyte);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="keywordtype">void</span> <a class="code" href="hal_8h.html#ae2c545801a4158cd4d1967ea8a4a22be">HAL_RND_GetBlock</a>( uint8_t * buf);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="hal_8h_html_ae2c545801a4158cd4d1967ea8a4a22be"><div class="ttname"><a href="hal_8h.html#ae2c545801a4158cd4d1967ea8a4a22be">HAL_RND_GetBlock</a></div><div class="ttdeci">void HAL_RND_GetBlock(uint8_t *buf)</div><div class="ttdoc">Generate Pseudo Random Numbers. </div><div class="ttdef"><b>Definition:</b> hal.c:84</div></div>
<div class="ttc" id="hal_8h_html_aebb1592b9bb339c20a2e28a08b3deebe"><div class="ttname"><a href="hal_8h.html#aebb1592b9bb339c20a2e28a08b3deebe">HAL_Mem_WriteBlock</a></div><div class="ttdeci">int HAL_Mem_WriteBlock(uint16_t address, uint16_t size, uint8_t *databyte)</div><div class="ttdoc">Write block of data. </div><div class="ttdef"><b>Definition:</b> hal.c:72</div></div>
<div class="ttc" id="hal_8h_html_a5e86724251ff7e04917713b3e0d3eeaf"><div class="ttname"><a href="hal_8h.html#a5e86724251ff7e04917713b3e0d3eeaf">HAL_IO_TxByte</a></div><div class="ttdeci">void HAL_IO_TxByte(uint8_t ch)</div><div class="ttdoc">Transmit 1 byte data. </div><div class="ttdef"><b>Definition:</b> hal-emu.c:22</div></div>
<div class="ttc" id="hal_8h_html_ab846f676e7ae737a96a974da5c8dd558"><div class="ttname"><a href="hal_8h.html#ab846f676e7ae737a96a974da5c8dd558">HAL_Mem_WriteByte</a></div><div class="ttdeci">void HAL_Mem_WriteByte(uint16_t address, uint8_t databyte)</div><div class="ttdoc">Write 1 byte data. </div><div class="ttdef"><b>Definition:</b> hal.c:48</div></div>
<div class="ttc" id="hal_8h_html_a48d7225f3720aa598e5c9fc3354c88e8"><div class="ttname"><a href="hal_8h.html#a48d7225f3720aa598e5c9fc3354c88e8">HAL_Mem_ReadBlock</a></div><div class="ttdeci">int HAL_Mem_ReadBlock(uint16_t address, uint16_t size, uint8_t *databyte)</div><div class="ttdoc">Read block of data. </div><div class="ttdef"><b>Definition:</b> hal.c:60</div></div>
<div class="ttc" id="hal_8h_html_a136930f47e2cdb4cdd6bc147b9703b0f"><div class="ttname"><a href="hal_8h.html#a136930f47e2cdb4cdd6bc147b9703b0f">HAL_IO_RxByte</a></div><div class="ttdeci">uint8_t HAL_IO_RxByte()</div><div class="ttdoc">Receive 1 byte data. </div><div class="ttdef"><b>Definition:</b> hal-emu.c:17</div></div>
<div class="ttc" id="hal_8h_html_a2a2216471be84d032a09559ed0b97cac"><div class="ttname"><a href="hal_8h.html#a2a2216471be84d032a09559ed0b97cac">HAL_Mem_ReadByte</a></div><div class="ttdeci">uint8_t HAL_Mem_ReadByte(uint16_t address)</div><div class="ttdoc">Read 1 byte data. </div><div class="ttdef"><b>Definition:</b> hal.c:33</div></div>
<div class="ttc" id="hal_8h_html_ad106c3e360fec68aef9cc2da8bcb4064"><div class="ttname"><a href="hal_8h.html#ad106c3e360fec68aef9cc2da8bcb4064">HAL_Init</a></div><div class="ttdeci">int HAL_Init()</div><div class="ttdoc">Initialize Hardware. </div><div class="ttdef"><b>Definition:</b> hal.c:10</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jun 4 2014 18:13:31 for PintarOS by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
